package com.yunji.aggregate.model.vo.product;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yunji.common.convert.DecimalLeftTwo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @Project: yunji-coffee
 * @Package: com.yunji.user.vo
 * @Title: ProductSalesVO
 * <p>
 * History:
 * Date                     Version     Author          Summary
 * ============================================================
 * 2024-09-11 19:45:24      V1.0        HuaAo       新建类
 */
@Data
public class ProductOrderStatisticsVO {

    @ApiModelProperty("商品ID")
    private Long productId;

    @ApiModelProperty("商品名称")
    private String productName;

    @ApiModelProperty("商品sku")
    private String productSku;

    @ApiModelProperty("商品图片")
    private String albumPics;

    @ApiModelProperty("商品类型")
    private Integer productType;

    @ApiModelProperty("销售数量")
    private BigDecimal orderCount = BigDecimal.ZERO;;

    @JsonSerialize(using = DecimalLeftTwo.class)
    @ApiModelProperty("平均单价")
    private BigDecimal orderAvgAmt = BigDecimal.ZERO;

    @JsonSerialize(using = DecimalLeftTwo.class)
    @ApiModelProperty("总销售金额")
    private BigDecimal orderSumAmt = BigDecimal.ZERO;

    @JsonSerialize(using = DecimalLeftTwo.class)
    @ApiModelProperty("总成本")
    private BigDecimal orderSumCost = BigDecimal.ZERO;

    @JsonSerialize(using = DecimalLeftTwo.class)
    @ApiModelProperty("售后率")
    private BigDecimal refundRate = BigDecimal.ZERO;

    @JsonSerialize(using = DecimalLeftTwo.class)
    @ApiModelProperty("毛利")
    private BigDecimal grossProfit = BigDecimal.ZERO;

    @JsonSerialize(using = DecimalLeftTwo.class)
    @ApiModelProperty("毛利率")
    private BigDecimal grossRate = BigDecimal.ZERO;
}